package com.cskaoyan.bean.po;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName:OrderInfo
 * @Auther: HeXianZu
 * @Description:
 * @Date: 2022/10/14 10:38
 */
@Data
public class OrderInfo {

    private String expName;
    private String consignee;
    private String address;
    private Date addTime;
    private String orderSn;
    private BigDecimal actualPrice;
    private String mobile;
    private String message;
    private String expCode;
    private String orderStatusText;
    private Short aftersaleStatus;
    private BigDecimal goodsPrice;
    private String expNo;
    private BigDecimal couponPrice;
    private Integer id;
    private BigDecimal freightPrice;
    private HandleOption handleOption;

    public void setOrderStatusText(Short statusText) {
        if (statusText == 101) {
            orderStatusText = "待付款";
        }
        if (statusText == 102) {
            orderStatusText = "订单取消，退款中";
        }
        if (statusText == 103) {
            orderStatusText = "系统取消";
        }
        if (statusText == 201) {
            orderStatusText = "已付款";
        }
        if (statusText == 202) {
            orderStatusText = "申请退款";
        }
        if (statusText == 203) {
            orderStatusText = "已退款";
        }
        if (statusText == 301) {
            orderStatusText = "已发货";
        }
        if (statusText == 401) {
            orderStatusText = "已收货";
        }
        if (statusText == 402) {
            orderStatusText = "系统收货";
        }
    }

}
